import zipfile
import os
import subprocess
def Extract_files_par(parx_file_path):
    extracted_files_path = os.getcwd()
    os.makedirs(extracted_files_path, exist_ok=True)

    # 提取 `.par` 文件
    par_file_path = os.path.join(extracted_files_path, '000_simulation.par')
    with zipfile.ZipFile(parx_file_path, 'r') as parx_zip:
        par_entry = '000_simulation.par'  # 根据实际情况修改
        if par_entry in parx_zip.namelist():
            parx_zip.extract(par_entry, path=extracted_files_path)
            
            